﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000E6 RID: 230
	public class TAlterFileFormatStmt : TCustomSqlStatement
	{
		// Token: 0x060007DA RID: 2010 RVA: 0x0030137F File Offset: 0x002FF57F
		public void setFileFormatName(TObjectName fileFormatName)
		{
			this.fileFormatName = fileFormatName;
		}

		// Token: 0x060007DB RID: 2011 RVA: 0x00301388 File Offset: 0x002FF588
		public void setNewFileFormatName(TObjectName newFileFormatName)
		{
			this.newFileFormatName = newFileFormatName;
		}

		// Token: 0x060007DC RID: 2012 RVA: 0x00301391 File Offset: 0x002FF591
		public TObjectName getFileFormatName()
		{
			return this.fileFormatName;
		}

		// Token: 0x060007DD RID: 2013 RVA: 0x00301399 File Offset: 0x002FF599
		public TObjectName getNewFileFormatName()
		{
			return this.newFileFormatName;
		}

		// Token: 0x060007DE RID: 2014 RVA: 0x003013A1 File Offset: 0x002FF5A1
		public TAlterFileFormatStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterFileFormat;
		}

		// Token: 0x060007DF RID: 2015 RVA: 0x003013B8 File Offset: 0x002FF5B8
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TAlterDatabaseSqlNode talterDatabaseSqlNode = (TAlterDatabaseSqlNode)this.rootNode;
			this.fileFormatName = talterDatabaseSqlNode.DatabaseName;
			this.newFileFormatName = talterDatabaseSqlNode.NewDatabaseName;
			return 0;
		}

		// Token: 0x060007E0 RID: 2016 RVA: 0x003013FC File Offset: 0x002FF5FC
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007E1 RID: 2017 RVA: 0x0030140C File Offset: 0x002FF60C
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F3 RID: 4595
		private TObjectName fileFormatName;

		// Token: 0x040011F4 RID: 4596
		private TObjectName newFileFormatName;
	}
}
